package cn.sciento.farm.devicemanager.common.constant;

public interface DeviceConstant {

    //设备接入方式
    String SIMPLE = "simple";
    String MODBUS_TCP = "modtcp";
    String MODBUS_RTU = "modrtu";
    String LORAWAN = "lorawan";
    String INSENTEK = "insentek";

    // 统一设备
    String LORAWAN_GW = "LW_GW";
    String LOEAWAN_NODE = "LW_NODE";
    String SCI_GW = "SCI_GW";
    String USR_LORA_GW = "USR_LORA_GW";
    String INSENTEK_GW = "INSENTEK_GW";

    String SWITCH_TYPE_4 = "L04";
    String SWITCH_TYPE_8 = "L08";
    String SWITCH_TYPE_12 = "L12";
    String SWITCH_TYPE_16 = "L16";

    // 云台速度：0-慢，1-适中，2-快
    int PTZ_SPEED = 1;


    //控制日志的控制类型
    // 用户手动发送
    String USER_CONTROL = "user";

    String STRATEGY_CONTROL = "strategy";

    String TIMER_CONTROL = "timer";

    int STATUS_OK = 1;
    // 控制的状态
    int CONTROL_STOP = 0;
    int CONTROL_FORWARD = 1;
    int CONTROL_REVERSE = 2;

    //控制的结果
    int RESULT_FAILURE = 0;
    int RESULT_SUCCESS = 1;
    int RESULT_UNKNOWN = -1;


    // 场景控制的策略
    String SCENE_STRATE_INTERRUPT = "interrupt";
    String SCENE_STRATE_IGNORE = "ignore";
    String SCENE_STRATE_AGAIN = "again";
    // 场景的类别
    String SCENE_TYPE_GROUP = "group";
    String SCENE_TYPE_IRRIGATION = "irrigation";


    // 水肥机
    // 控制类型
    String FERTILIZER_OPERATE_VALVE = "valve";
    String FERTILIZER_OPERATE_MOTOR = "motor";



    //策略
    String STRATEGY_TYPE_BIGGER = "bigger";
    String STRATEGY_TYPE_SMALLER="smaller";

    // 屏幕
    // 传感器名称：传感器值 单位
    String SCREEN_COLLECTION_TEMPLATE = "%s:%s%s\\n";
    String SCREEN_DTU_TEMPLATE = "%s\\n";

    // 水流控制类型
    String FLOW_CONTROL_TYPE = "flow";


    // 设备类型
    String DEVICE_TYPE_LIGHT = "light";   //灯

}
